<?php 
$preTitle="Welcome";
include("components/header.php"); 

$startpage = "args";
if (isset($_REQUEST['start']))
	$startpage = $_REQUEST['start'];
if (empty($_SESSION['access_token']) || empty($_SESSION['access_token']['oauth_token']) || empty($_SESSION['access_token']['oauth_token_secret']))
{
$startpage = "welcome";
}
?>
<table id="maintable" cellpadding="0" cellspacing="0">
<tr id="toprow">

	<td colspan="3">
		<?php include("components/toprowentry_center.php"); ?>
	</td>

</tr>
<tr id="entryrow">

	<td colspan="3">
	<?php
	 	include("components/headerentry_center.php");
	 ?>
	</td>

</tr>
<tr>
	<td id="spacercol"></td>
	<td>
	<table id="contenttable" cellspacing="0" cellpadding="0" border="0">	
	<tr style="padding:0px;height:10px;">
		<td valign="top" style="background-image:url(images/topleft.gif);"></td>
		<td style="background-color:#ffffff;padding:0px;height:10px;"></td>
		<td valign="top" style="background-image:url(images/topright.gif);padding-right:16px;background-position:top right;"></td>
	</tr>
	<tr>
		<td rowspan="2" valign="top" id="menucol">
			<div id="menudiv">
			<?php
				@include ("components/".$startpage."_block.php");
				
/*				if ($startpage == "args")
				{
					include("components/args_block.php");
					include("components/timelinetype_block.php");
				}
				else if (($startpage == "createarg")||($startpage == "createarg_adv")||($startpage == "directory")||($startpage == "listing"))
				{
					include("components/args_block.php");
				}
				else if ($startpage == "visualine")
				{
					include("components/timelinetype_block.php");
					include("components/visualine_block.php");
				}
				else if ($startpage == "createimg")
				{
					include("components/visualine_block.php");
				}
				else if ($startpage == "forms")
				{
					include("components/forms_block.php");
					include("components/timelinetype_block.php");
				}
				else if ($startpage == "createform")
				{
					include("components/forms_block.php");
				}
				else if ($startpage == "qwollow")
				{
					include("components/qwollow_block.php");
					include("components/qwollow_legend_block.php");
				}
*/

			?>
			</div>
		</td>
		<td colspan="2" id="menudiv">			
			<?php include("components/ad_top_center.php"); ?>			
		</td>
	</tr>
	<tr>
		<td valign="top" id="centercol">
			<?php

/*if (empty($_SESSION['access_token']) || empty($_SESSION['access_token']['oauth_token']) || empty($_SESSION['access_token']['oauth_token_secret']))
{
	include("components/welcome_center.php");
}
else
{
*/
	@include ("components/".$startpage."_center.php");
/*	if ($startpage == "args")
		include("components/timeline_center.php");
	else if ($startpage == "createarg")
		include("components/createarg_center.php");
	else if ($startpage == "createarg_adv")
		include("components/createarg_adv_center.php");
	else if ($startpage == "directory")
		include("components/directory_center.php");
	else if ($startpage == "listing")
		include("components/listing_center.php");
	else if ($startpage == "music")	
		include("components/music_timeline_center.php");
	else if ($startpage == "prune")	
		include("components/prune_center.php");
	else if ($startpage == "credits")
		include("components/credits_center.php");
	else if ($startpage == "visualine")
		include("components/visualine_timeline_center.php");
	else if ($startpage == "createimg")
		include("components/createimg_center.php");
	else if ($startpage == "forms")
		include("components/forms_timeline_center.php");
	else if ($startpage == "share")
		include("components/share_center.php");
	else if ($startpage == "createform")
		include("components/createform_center.php");
	else if ($startpage == "actions")
		include("components/actions_timeline_center.php");
	else if ($startpage == "qwollow")
		include("components/qwollow_center.php");
	else if ($startpage == "robot")
	{
		include("components/robot_builder_center.php");
		include("components/timeline_center.php");
	}
*/
//}
			?>
		</td>
		<td valign="top"  id="menudiv">
			
				<?php include("components/ad_right_block.php"); ?>
			
		</td>
	</tr>
	<tr style="padding:0px;height:10px;">
		<td valign="bottom" style="background-image:url(images/botleft.gif);background-position:bottom left;"></td>
		<td style="background-color:#ffffff;padding:0px;height:10px;"></td>
		<td valign="bottom" style="background-image:url(images/botright.gif);padding-right:16px;background-position:bottom right;"></td>
	</tr>
	</table><br />
	<table border="0" width="100%">
	<tr>
		<td align="center">
			<?php include("components/search_center.php"); ?>
			<?php include("components/footerlinks_center.php"); ?>
			<?php include("components/partnerlinks_center.php"); ?>
		</td>
	</tr>
	</table>

	</td> 
	<td id="spacercol"></td>
</tr>

</table>
<?php include("components/footer.php"); ?>